package org.lexicon.ontologydocumentor
import java.io.FileWriter

class OntologyDocumentor {

	static namespaces = [rdfs:"http://www.w3.org/2000/01/rdf-schema#",
							rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
							owl:"http://www.w3.org/2002/07/owl#",
							xsd:"http://www.w3.org/2001/XMLSchema#",
							dc:"http://purl.org/dc/elements/1.1/",
							dcterms:"http://purl.org/dc/terms/",
							foaf:"http://xmlns.com/foaf/0.1/"];
	
	URI document;
	
	
	
	static main(args) {
		OntologyDocumentTransformer odt = new OntologyDocumentTransformer(new URI("file:///home/william/Filestore/Development/Lexicater/vocabularies/innovation/ns.owl"));
		OntologyDocument od = odt.transform();
		OntologyDocumentWriter odw = new OntologyDocumentWriter(od);
		File f = new File("/home/william/Filestore/test.html");
		FileWriter fw = new FileWriter(f);
		fw.write(odw.getContents());
		println odw.getContents();
	}
	
}
